"""
作者：李伟丽
日期：2022/09/09
"""
import json

from config import BASE_DIR


# 读取 json 文件
def read_json_data(path_filename):
    with open(BASE_DIR + "/data/tpshop_login_data.json", "r", encoding="utf-8") as f:
        json_data = json.load(f)
    # 将 [{},{},{}] 转换为 [(),(),()] 结构
    list_data = []
    for item in json_data:
        temp = tuple(item.values())
        list_data.append(temp[1:])

    return list_data
